package com.jianhua.backend.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 存储用户在各场馆的配送地址信息
 * </p>
 *
 * @author author
 * @since 2025-07-02
 */
@Getter
@Setter
@ToString
@TableName("user_addresses")
public class UserAddresses implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 地址唯一标识
     */
    @TableId(value = "address_id", type = IdType.AUTO)
    private Integer addressId;

    /**
     * 关联用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 关联场馆ID
     */
    @TableField("venue_id")
    private Integer venueId;

    /**
     * 场馆内具体位置描述
     */
    @TableField("specific_location")
    private String specificLocation;

    /**
     * 是否为默认地址(1是/0否)
     */
    @TableField("is_default")
    private Boolean isDefault;

    /**
     * 记录创建时间
     */
    @TableField("created_at")
    private Date createdAt;

    /**
     * 记录更新时间
     */
    @TableField("updated_at")
    private Date updatedAt;
}
